package com.ygxsk.carhome.alertview;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by itchenqi on 2018/2/2 0002.
 * description：滚轮内容的id和值信息
 */

public class OperationBean implements Parcelable {

    private int nameId;
    private String name;


    public OperationBean(int nameId, String name) {
        this.nameId = nameId;
        this.name = name;
    }

    public int getNameId() {
        return nameId;
    }

    public void setNameId(int nameId) {
        this.nameId = nameId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.nameId);
        dest.writeString(this.name);
    }

    protected OperationBean(Parcel in) {
        this.nameId = in.readInt();
        this.name = in.readString();
    }

    public static final Creator<OperationBean> CREATOR = new Creator<OperationBean>() {
        @Override
        public OperationBean createFromParcel(Parcel source) {
            return new OperationBean(source);
        }

        @Override
        public OperationBean[] newArray(int size) {
            return new OperationBean[size];
        }
    };
}
